package com.qst.mapper;

import com.qst.pojo.Choose;
import com.qst.pojo.Result;
import com.qst.query.ClassQuery;
import com.qst.pojo.Class;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * @ClassNmae: ClassMapper
 * @Author: 邓嘉顺
 * @Description:
 */
public interface ClassMapper {
    List<Class> queryAllCourse(ClassQuery classQuery);

    Choose queryChooseByAll(@Param("userid") Integer user_id, @Param("classid") Integer course_id);

    int addChoose(Choose choose);

    List<Class> queryMyClass(@Param("id") Integer id, @Param("className") String className);

    Integer delChoose(Choose choose);

    Class queryAllById(Integer id);

    void updateNextHour(@Param("nextHour") Integer nextHour,@Param("id") Integer id);

    List<Class> queryAllAdminClass(String className);

    int getAllCount();

    int addAdminClass(Class class1);

    int delBatch(Integer[] ids);

    Integer EditAdminClass(@Param("id") Integer id, @Param("field") String field, @Param("value") String value);
}
